package com.syyo.gulimall.search.feign;

import com.syyo.common.domain.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author: wang
 * @date: 2021/3/2 16:02
 * @Description:
 */
@FeignClient("gulimall-product")
public interface ProductFeign {

    @GetMapping("/product/attr/{id}")
    public ResultVo findOne(@PathVariable("id") Integer id);

    @GetMapping("/product/brand/infos")
    public ResultVo brandInfos(@RequestParam("ids") List<Long> ids);

}
